<!DOCTYPE html>
<html lang="en">
<head>
    <title>${.title}</title>
    ${include "macro/gcss"}
    <script type="text/javascript">
        var code="${.code}";
        var search="${.list.Search}";

    </script>
</head>
<body class="site-content">

<div class="layui-form">
        ${- range .list.Search}
            ${- if eq "input" .Dom}
        <div class="layui-input-inline" style="margin: 0px;">
            <input type="text"
                   name="${.EnName}"
                   id="${.Id}"
                   placeholder="请输入${.ZhName}"
                   autocomplete="off" class="layui-input"/>
        </div>
            ${- end}
            ${- if eq "select" .Dom}
        <div class="layui-input-inline">
            <select name="state" id="${.Id}">
                ${- range .Option}
                <option value="${.Value}">${.ZhName}</option>
                ${- end}
            </select>
        </div>
            ${- end}
        ${- end}
    <div class="layui-input-inline">
        <button id="query-btn" class="layui-btn layui-btn-normal">
            <i class="layui-icon">&#xe615;</i>查询
        </button>
    </div>
    <div class="layui-input-inline">
        <button id="add-btn" class="layui-btn" lay-event="add-com">
            <i class="layui-icon">&#xe608;</i>添加
        </button>
    </div>
</div>
<table class="layui-table" id="list-table" lay-filter="demo"></table>
<script type="text/html" id="flagTpl">
    {{#  if(d.flag==0){ }}
    停用
    {{#  } else { }}
    启用
    {{#  } }}
</script>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
${include "macro/gjs"}
${include "crud/pagejs"}
</body>
</html>